(diary-entry-time): Fix typo/bug:
authorThien-Thi Nguyen <ttn@gnuvola.org>
Sat, 17 Jan 2004 13:46:09 +0000 (13:46 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Sat, 17 Jan 2004 13:46:09 +0000 (13:46 +0000)
Remove spurious left square bracket in XX:XXam regexp.

lisp/calendar/diary-lib.el

index 28fcb50ef142b3c91d23de6592b90c9eb1ac71e3..d2a0075fb7116704c3d84160509e78835839a7fd 100644 (file)
@@ -1118,7 +1118,7 @@ be used instead of a colon (:) to separate the hour and minute parts."
              (if (equal ?a (downcase (aref s (match-beginning 2))))
                  0 1200)))
          ((string-match        ; Hour and minute  XX:XXam or XX:XXpm
-           "\\`[ \t\n\\^M]*\\([0-9]?[0-9]\\)[:.][\\([0-9][0-9]\\)\\([ap]\\)m\\>" s)
+           "\\`[ \t\n\\^M]*\\([0-9]?[0-9]\\)[:.]\\([0-9][0-9]\\)\\([ap]\\)m\\>" s)
           (+ (* 100 (% (string-to-int
                           (substring s (match-beginning 1) (match-end 1)))
                          12))